package com.example.serverce.impl;

import com.example.dao.ManagerDao;
import com.example.entity.Manager;
import com.example.serverce.ManagerService;
import org.springframework.stereotype.Service;

/**
 * @author fyx
 */
@Service
public class ManagerServiceImpl implements ManagerService {
    private final ManagerDao mapper;

    public ManagerServiceImpl(ManagerDao mapper) {
        this.mapper = mapper;
    }

    @Override
    public Manager findById(int id) {
        return mapper.findOneById(id);
    }
}
